package operation;
import book.BooList;
import book.Book;


public class ExitSystem implements IOperation{

    @Override
    public void work(BooList books) {
        System.out.println("退出系统...");
        int currentSize = books.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
//            books[i] = null;
            books.setBooks(i,null);
        }
        System.exit(0);
    }
}
